package indi.zhifa.study2024.nbr.business.curd.consign.entity.request;

import indi.zhifa.study2024.nbr.enums.bill.consign.ESaleType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Schema(title = "销售单项")
@Data
public class ConsignBillDetailCreateRequest {
    @Schema(title = "销售类型")
    private ESaleType saleType;

    @Schema(title = "商品Id")
    private Long itemId;


    // 实际开发，用户选择的是大中小单位，前端也不会做单位转换
    @Schema(title = "销售数量-大单位")
    private Integer largeUnitCnt;
    @Schema(title = "销售数量-中单位")
    private Integer midUnitCnt;
    @Schema(title = "销售数量-小单位")
    private Integer smallUnitCnt;

    @Schema(title = "大单位价格")
    private BigDecimal priceLarge;

    @Schema(title = "总金额")
    private Long amount;
}
